package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.FruitInventory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface InventoryMapper extends BaseMapper<FruitInventory> {
    List<FruitInventory> selectInventoryList(@Param("fruitName") String fruitName, @Param("inventoryType") String inventoryType, @Param("inventoryStatus") String inventoryStatus, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    Long selectinventoryIDByFruitId(@Param("fruitId") Long fruitId);
}
